<!--************************************************************ -->
<!--* 文件创建日期：2010                                  * -->
<!--* 文件修改日期：			                                   * -->
<!--************************************************************ -->
<!--JSP初始化设置-->
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="com.infomanage.po.*" %>
<%@page import="com.infomanage.vo.*" %>
<%@page import="com.infomanage.enums.*"%>
<%@page import="com.qs.service.RecordPreventService"%>
<%@page import="com.qs.po.*"%>
<%@page import="com.qs.vo.*"%>
<%  response.addDateHeader("Expires", 0);response.setHeader("Pragma","no-cache"); response.setHeader("Cache-Control","no-cache");%>
<%
	request.setCharacterEncoding("UTF-8");
	String checkId = request.getParameter("checkId");
	if(checkId == null) checkId = "";
	
	QsRecPreventItem checkItem = RecordPreventService.load(request, response, out);
	String personId = "";
	int deptId = -1;
	String personname = "";
	String deptname = "";
	String dealResult = "";
	String gasParams = "";
	String imgDir = "";
	String place = "";
	String problem="";
	String route = "";
	String timestamp = "";
	String gasCh4 = "";
	String gasCo2 = "";
	String gasCo = "";
	String gasO2 = "";
	String gasT = "";
	if(checkItem != null) {
		QsRecPrevent preventCheck = checkItem.getBean();
		Department dept = checkItem.getDept();
		personId = preventCheck.getPersonId();
	    deptId = preventCheck.getDeptId();
	    personname = preventCheck.getPersonName();
	    deptname = dept.getPath();
	    dealResult = preventCheck.getDealResult();
	    gasCh4 = preventCheck.getGasCh4();
	    gasCo = preventCheck.getGasCo();
	    gasCo2 = preventCheck.getGasCo2();
	    gasO2 = preventCheck.getGasO2();
	    gasT = preventCheck.getGasT();
	    imgDir = preventCheck.getImgDir();
	    place = preventCheck.getPlace();
	    problem = preventCheck.getProblem();
	    route = preventCheck.getRoute();
	    timestamp = preventCheck.getTimestamp();
	} 
%>
<html>
<head>
	<title>预防检查工作记录</title>
	<link href="<%=request.getContextPath() %>/css/table.css" rel="stylesheet" type="text/css">
	
	<script type="text/javascript">
		function showLegend(pictureDir){
			var url = encodeURI("preventCheck_legend.jsp?pictureDir="+pictureDir);
			var width = '700px';
			var height ='500px';
			var arg = "dialogHeight:" + height + ";dialogWidth:" + width + ";status:no;location:no;edge=sunken;center=yes;resizable=yes;Minimize=yes;Maximize=yes";
			var returnValue = window.showModalDialog(url, "", arg);
			if(returnValue){
				dataFrame.location.reload();
			}
		}
	</script>
</head>
<body  rightmargin="0" bottommargin="0" leftmargin="0">
	<table class="dialogTable" cellpadding="0" cellspacing="0">
		<!-- 表头-->
		<tr class="dialogTableHeader">
			<td>预防检查工作记录</td>
		</tr>
		<!-- 表数据-->
		<tr class="dialogTableContent">
			<td>
				<!-- 数据项 -->
				<table class="dataTable">
					<col width="14%">
					<col width="28%">
					<col width="18%">
					<col width="8%">
					<col width="8%">
					<col width="8%">
					<col width="8%">
					<col width="8%">
					<tr>
						<td class="field">
							队别
						</td>
						<td>
							<%=deptname %>
						</td>
						<td class="field">
							时间
						</td>
						<td colspan="5">
							<%=timestamp %>
						</td>
					</tr>
					<tr>
						<td class="field">
							检查地点
						</td>
						<td>
							<%=place %>
						</td>
						<td class="field">
							预检人员
						</td>
						<td colspan="5"	title="<%=personname %>">
							<%=personname %>
						</td>
					</tr>
					<tr>
						<td class="field">
							行动路线
						</td>
						<td colspan="7">
							<%=route %>
						</td>
					</tr>
					<tr>
						<td rowspan="4" class="field">
							示意图
						</td>
						<td rowspan="4">
							<a id="legend"  href="#" onclick="showLegend('<%=imgDir %>');">查看图片</a>
						</td>
						<td rowspan="2" class="field">
							重点部位气体参数
						</td>
						<td align="center">
							CH4
						</td>
						<td align="center">
							CO2
						</td>
						<td align="center">
							CO
						</td>
						<td align="center">
							O2
						</td>
						<td align="center">
							T
						</td>
					</tr>
					<tr>
						<td align="center">
							<%=gasCh4%>
						</td>
						<td align="center">
							<%=gasCo2 %>
						</td>
						<td align="center">
							<%=gasCo %>
						</td>
						<td align="center">
							<%=gasO2 %>
						</td>
						<td align="center">
							<%=gasT %>
						</td>
					</tr>
					<tr>
						<td class="field">
							发现问题
						</td>
						<td colspan="5" style="height: 80px;">
							<%=problem %>
						</td>
					</tr>
					<tr>
						<td class="field">
							处理结果
						</td>
						<td colspan="5" style="height: 80px;">
							<%=dealResult %>
						</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td colspan="8" class="tableBtn">
				<span onclick="window.close();">关闭</span>
			</td>
		</tr>
		<tr valign="top">
			<td colspan="8">
				&nbsp;
			</td>
		</tr>
	</table>
</body>
</html>